<template>
  <div class="authorizeHint">
    <h1 class="title">获取位置失败</h1>
    <p class="hint-text">为了正常使用该小程序<br />请您打开权限授权</p>
    <button
      class="setting-btn"
      open-type="openSetting"
      @opensetting="handleOpensetting"
    >授权</button>
  </div>
</template>
<script>
export default {
  data() {
    return {};
  },
  methods: {
    handleOpensetting() {
      this.$emit("onChangeAuthroizeHintSHow");
    }
  }
};
</script>
<style lang="scss" scoped>
@import '@/styles/mixin.scss';
.authorizeHint {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  width: 630rpx;
  height: 390rpx;
  background: #fff;
  border-radius: 14rpx;
  .title {
    padding-top: 52rpx;
    font-size: 36rpx;
    font-weight: bolder;
    color: #4a4a4a;
    text-align: center;
  }
  .hint-text {
    padding-top: 22rpx;
    line-height: 60rpx;
    font-size: 28rpx;
    font-weight: bolder;
    color: #9b9b9b;
    text-align: center;
  }
  .setting-btn {
    @include active-btn(314rpx, 78rpx);
    margin: 30rpx auto 0;
  }
}
</style>